<?php
namespace app\admin\model;
use think\Model;

class SystemSetting extends Model{

    public static function getSettingByGroup(){
        $data = self::field('group,type,name,value')->where("name != 'group_setting'")->all();
        return group_array_hash($data,'group');
    }

}
